<?php
//STILL UNDER CONSTRUCTION

/**
 * Description of diet
 *
 * @author bilde
 */
class diet extends CI_Controller
{
    	function  __construct()
        {
           parent::__construct();

           //Logged_in control
	   if (!$this->session->userdata('is_logged_in'))
           {
                redirect('/welcome/index', 'refresh');
	   }

	}

        //Load the diet-view
        function index()
        {
            $data['title'] = 'Diet';
            $data['main_content'] = 'diet/diet_home';
            $this->load->vars($data);
            $this->load->view('includes/template');
	}
}
?>
